require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'
require 'WSHelpers.rb'

props = {
  :object => 'Subscriber',
  :props => ['ID','SubscriberKey','EmailAddress']
}


filter = {
  :filterType => 'Simple',
  :filter => ['SubscriberKey','like','api-test']
}

subs = BuildRetrieve.new
resp = subs.creates(props,filter)

resp.results.each do |result|
  puts result.iD.to_s + " - " + result.subscriberKey + " - " + result.emailAddress
end